﻿
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CommonTagTime.DataAccess;
using CommonTagTime.ModelObject;
namespace CommonTagTime.Business
{
    public class busStoreOrderDetail
    {
        //------------------------------------------------
        //FIELD TABLE
        //------------------------------------------------

        public const string OrderId = "OrderId";
        public const string OrderDetailId = "OrderDetailId";
        public const string Name = "Name";
        public const string Quantity = "Quantity";
        public const string DesignCode = "DesignCode";
        public const string CreatedDate = "CreatedDate";
        public const string ModifiedDate = "ModifiedDate";
        public const string FinishDate = "FinishDate";
        public const string CreatedBy = "CreatedBy";
        public const string ModifiedBy = "ModifiedBy";
        public const string StartDate = "StartDate";
        public const string EndDate = "EndDate";
        public const string ORDERBY = "OrderBy";
        public const string ORDERDIRECTION = "OrderDirection";
        public const string CURRENTPAGE = "CurrentPage";
        public const string PAGESIZE = "PageSize";
        public const string TOTALRECORDS = "TotalRecords";
        public const string CONDITION = "Condition";
        private daoStoreOrderDetail _daoOrderDetail;
        //------------------------------------------------
        //PUBLIC
        //------------------------------------------------
        public busStoreOrderDetail()
        {
            _daoOrderDetail = new daoStoreOrderDetail();
        }
        public bool Delete(int orderDetailId)
        {
            return _daoOrderDetail.Delete(orderDetailId);
        }
        public StoreOrderDetailCollection ListByOrder(int orderId)
        {
            return _daoOrderDetail.ListByOrder(orderId);
        }
        public StoreOrderDetailCollection List(StoreOrderDetail objOrderDetail)
        {
            return _daoOrderDetail.List(objOrderDetail);
        }
        public StoreOrderDetail GetByID(int orderDetailId)
        {
            return _daoOrderDetail.GetByID(orderDetailId);
        }
        public int Insert(StoreOrderDetail objOrderDetail)
        {
            return _daoOrderDetail.Insert(objOrderDetail);
        }
        public int Update(StoreOrderDetail objOrderDetail)
        {
            return _daoOrderDetail.Update(objOrderDetail);
        }
    }

}